<!-- 打印订单 -->
<script>
    (function ($) {

        var print = function (order_id) {
            window.open("{AnUrl('order/admin/print_detail')}?print_type=2&id=" + order_id);
        };

        var printOrder = function (order_id) {
            print(order_id);
            setTimeout(function () {
                window.location.reload();
            }, 1500);
        };

        var rePrintOrder = function (order_id) {
            showConfirm('再次打印出库联?', 1, function () {
                print(order_id);
            });
        };

        window.order_operation.DEALER_ACTION_PRINT = printOrder;
        console.log('order_operation.DEALER_ACTION_PRINT added! 打印订单');

        window.order_operation.DEALER_ACTION_REPRINT = rePrintOrder;
        console.log('order_operation.DEALER_ACTION_REPRINT added! 再次打印订单');
    })(jQuery);
</script>
<!-- /打印订单 -->